/**
 * Description:
 * Class Name:SortTest
 * Date:2022/3/14 15:42
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第8章_Java集合._8_8_操作集合的工具类_Collections._8_8_1_排序操作;

import java.util.ArrayList;
import java.util.Collections;

public class SortTest {
    public static void main(String[] args) {
        var nums = new ArrayList();
        nums.add(2);
        nums.add(-5);
        nums.add(3);
        nums.add(0);
        System.out.println(nums);

        Collections.reverse(nums);
        System.out.println(nums);

        Collections.sort(nums);
        System.out.println(nums);

        Collections.shuffle(nums);
        System.out.println(nums);
    }
}
